import kotlinx.serialization.Serializable

@Serializable
sealed class ServerMessage

@Serializable
sealed class Payload

@Serializable
data class GenericServerMessage(
  val payload: Payload
) : ServerMessage()

@Serializable
data class BoardPayload(
  val board: Map<String, Board>,
  val id: String
) : Payload()

@Serializable
data class GamePayload(
  val ids: List<String>
) : Payload()
